<?php

$app_modules["ff_projects"] = array(
    'slug' => __('projects'),
    'name' => __('Projects'),
    'menu_name' => __('Projects'),
    'singular_name' => __('Project'),
    'icon' => 'box_16.png',
    'module_columns' => array( 'post_title','assign_to','start_date','status', 'percent_complete', 'account_parent', 'post_date'),
    'module_columns_config' => array(
        'header_a_z' => true,
        'grid_type' => 'ajax_data',
        'use_paging' => true,
        'use_global_default_paging_nb' => true, //THIS MUST BE SET IN GENERAL OPTION, with option 'default_paging_nb'
        //'nb_by_page'=>20, //To FORCE A SPECIFIC PAGING NB FOR THIS MODULE. WILL OVERHIDE THE use_global_default_paging_nb NB
        'user_can_change_paging_nb_by_module' => true,
    ),
    'module_new_categories' => array('cat15_projects'),
    'module_tags' => array('tag15_projects'),
    'custom_featured_image' => array(
        'thumb_name' => 'fgl_mini_screen',
        'sizes' => array(
            'fgl_mini_screen' => array(70, 70, true),
            'fgl_small_screen' => array(175, 175, true),
            'fgl_medium_screen' => array(300, 300),
            'fgl_zoom_screen' => array(1000, 1000),
        )/* ,
      'blocks' => array(
      'secondary-image' => _('Second Image'),
      'third-image' => _('Third Image'),
      'fourth-image' => _('Fourth Image'),
      'fifth-image' => _('Fifth Image')
      ) */
    ),
    'metaboxes' => array(
        'quickadd' => array(
            'title' => __('Quick Add'), // & tags
            'context' => 'side',
            'priority' => 'high',
            'positioning' => array(
                'main' => array(
                ),
                'tabs' => array(
                    'tablone' => array(
                        'label' => 'Quick add',
                        'items' => array(
                            array('quick_add_event'),
                            array('quick_add_note'),
                        )
                    )
                /* ,'tabltwo' => array(
                  'label'=>'tags',
                  'items'=>array(
                  array('tags_list'),
                  )
                  ), */
                )
            )
        ),
        'team_notif' => array(
            'title' => __('Teams & Categories'),
            'context' => 'side',
            'priority' => 'high',
            'positioning' => array(
                /* 'main' => array(
                  array('assign_to'),
                  ), */

                'tabs' => array(
                    'tabltwo' => array(
                        'label' => 'Team & Notifications',
                        'items' => array(
                            array('team_assignments'),
                        )
                    ),
                    'tablone' => array(
                        'label' => 'Categories',
                        'items' => array(
                            array('categories_list'),
                        )
                    )
                )
            )
        ),
        'project_information' => array(
            'title' => __('Project Information'),
            'context' => 'advanced',
            'priority' => 'high',
            'positioning' => array(
                'topbar' => array(
                    'special' => array('assign_to'),
                    'common' => array(
                        'delete_action' => true,
                        'status_action' => true,
                        'save_action' => true,)
                ),
                'main' => array(
                    array(
                        'ref_id','project_type'
                    ),
                    array(
                        'account_parent','contact_parent'
                    ),
                    array(
                        'start_date',
                        'end_date'
                    ),
                    array(
                        'status', 'percent_complete'
                    ),
                    array(
                        'potential_amount', 'potential_amount_type'
                    ),
                ),
                'tabs' => array(
                    'tab_1' => array(
                        'label' => 'Full description',
                        'items' => array(
                            array('full_description'),
                        )
                    ),
                    'tab_5b' => array(
                        'label' => 'Project Tasks',
                        'items' => array(
                            array('ff_project_child_tasks')//ff_potential_child_tasks
                        )
                    ),
                    'tab_5i' => array(
                        'label' => 'Milestones',
                        'items' => array(
                            array('ff_project_child_milestones')//ff_potential_child_tasks
                        )
                    ),
                    'tab_11' => array(
                        'label' => 'Comments',
                        'items' => array(
                            array('comments'),
                        )
                    ),
                    'tab_10' => array(
                        'label' => 'Files',
                        'items' => array(
                            array('files_upload'),
                        )
                    )
                )
            )
        )
       /* , 'portfolio_information' => array(
            'title' => __('Portfolio Information'),
            'context' => 'advanced',
            'priority' => 'high',
            'positioning' => array(
                'main' => array(
                ),
                'tabs' => array(
                    'tab_portfolio' => array(
                        'label' => 'Infos Portfolio',
                        'items' => array(
                            array(
                                'project_show_on_site',
                                'project_push_home', 'private_on_site'
                            ),
                            array(
                                'full_description_simple'
                            ),
                            array(
                                'project_tech',
                            ),
                            array(
                                'demo_url', 'end_url',
                            ),
                        )
                    ),
                    'tab_2' => array(
                        'label' => 'Images Portfolio',
                        'items' => array(
                            array('screenshots_upload'),
                        )
                    ),
                )
            )
        )*/
    )
);

